package com.es.www;

/**
 * @Created by michangtao
 * @Date 2022/5/19 15:03
 * @Description
 */
public class SugarDecorator extends CoffeeDecorator{

    public SugarDecorator(ICoffee coffee) {
        super(coffee);
    }

    @Override
    public void makeCoffee() {
        super.makeCoffee();
        addSugar();
    }

    public void addSugar(){
        System.out.println("加糖");
    }
}
